package com.wjb.springcloud.pojo;

import com.wjb.config.FeignConfiguration;
import feign.Param;
import feign.RequestLine;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

@org.springframework.cloud.netflix.feign.FeignClient(name = "user-service",configuration= FeignConfiguration.class)
public interface FeignClient {
//    @RequestMapping(method = RequestMethod.GET,value = "/simple/{id}")
//    Student findByid(@PathVariable(value = "id") Integer id);
    @RequestLine("GET /simple/{id}")
    public Student findById(@Param("id") Integer id);
    @RequestLine("POST /test?id=1")
    public Student findById2();

}
